package com.deng.common.vo;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.deng.permission.vo.UserVo;

@Entity
@Table(name="t_sys_stat_department")
public class OrganizationVoForHibernate implements Serializable{

	private Integer apply_flag;
	@Id
	@GenericGenerator(name="gg",strategy="native")
	@GeneratedValue(generator="gg")
	private Integer id;
	private Integer is_leaf;
	private Integer parent_id;
	private Integer sjly;
	private String base_bonus_function;
	private String base_bonus_function_detail;
	private String divisionTypeCode;
	private String duty_id;
	private String function_name;
	private String ioType;
	private String name;
	private String newCode;

	@ManyToMany(cascade={CascadeType.PERSIST,CascadeType.MERGE},
			mappedBy="organization_vo",
			targetEntity=com.deng.permission.vo.UserVo.class)
	private Set<UserVo> user_vo;

	public Integer getApply_flag() {
		return apply_flag;
	}

	public void setApply_flag(Integer apply_flag) {
		this.apply_flag = apply_flag;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getIs_leaf() {
		return is_leaf;
	}

	public void setIs_leaf(Integer is_leaf) {
		this.is_leaf = is_leaf;
	}

	public Integer getParent_id() {
		return parent_id;
	}

	public void setParent_id(Integer parent_id) {
		this.parent_id = parent_id;
	}

	public Integer getSjly() {
		return sjly;
	}

	public void setSjly(Integer sjly) {
		this.sjly = sjly;
	}

	public String getBase_bonus_function() {
		return base_bonus_function;
	}

	public void setBase_bonus_function(String base_bonus_function) {
		this.base_bonus_function = base_bonus_function;
	}

	public String getBase_bonus_function_detail() {
		return base_bonus_function_detail;
	}

	public void setBase_bonus_function_detail(String base_bonus_function_detail) {
		this.base_bonus_function_detail = base_bonus_function_detail;
	}

	public String getDivisionTypeCode() {
		return divisionTypeCode;
	}

	public void setDivisionTypeCode(String divisionTypeCode) {
		this.divisionTypeCode = divisionTypeCode;
	}

	public String getDuty_id() {
		return duty_id;
	}

	public void setDuty_id(String duty_id) {
		this.duty_id = duty_id;
	}

	public String getFunction_name() {
		return function_name;
	}

	public void setFunction_name(String function_name) {
		this.function_name = function_name;
	}

	public String getIoType() {
		return ioType;
	}

	public void setIoType(String ioType) {
		this.ioType = ioType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNewCode() {
		return newCode;
	}

	public void setNewCode(String newCode) {
		this.newCode = newCode;
	}

	public Set<UserVo> getUser_vo() {
		return user_vo;
	}

	public void setUser_vo(Set<UserVo> user_vo) {
		this.user_vo = user_vo;
	}
	
	
//	public Integer id;
//	public String name;
//	public Integer parent_id;
//	public Integer is_leaf;		
//	public Integer item_id;
//	public String item_name;
//	public Integer isDef;
//	public String newCode;
//	public Integer duty_id;
//	public String duty_name;
//	
//	
//
//	public String base_bonus_function;
//	public String base_bonus_function_detail;
//	
//	public List<OrganizationVo> child_organization_arr;
//	public List<EmployeeVo> employee_arr;
//	public List<Object> price_item_arr;
//	public List<OrganizationVsPerformanceVo> organization_vs_performance_arr;
//	
//	public String full_name;
//	public Integer dispense_id;
//	
//	public Integer selected;
//	public String type;
//	public Integer operate_id;
//	
//	public Integer ruled;
	
}
